package com.java.service;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.java.dao.ShopOrderDao;
import com.java.vo.ShopTransOrder;

@Service
public class ShopOrderService {
	
	private Logger logger = LoggerFactory.getLogger(getClass());
	
	@Autowired
	private ShopOrderDao shopOrderDao;
	
	public List<ShopTransOrder> list(String productName, String phone, Integer payType, String date, Integer state,
			Integer page,Integer id) {
		return shopOrderDao.list(productName, phone, payType, date, state, page, id);
	}
	
	public Integer listCnt(String productName, String phone, Integer payType, String date, Integer state) {
		return shopOrderDao.listCnt(productName, phone, payType, date, state);
	}
	
	public boolean setSend(int id) {
		return shopOrderDao.setSend(id);	
	}

}
